package com.eleclab.modele;

import java.util.LinkedList;

/* TODO
 * - Ajouter les attributs
 * - Ajouter constructeur, setters, getters
 */

public class Circuit {
    
    private LinkedList <Composant> circ;
    
    public Circuit() {
        this.circ = new LinkedList <Composant>();
        this.circ.add(0, new Generateur("GBF", "gene", 50, 300, 20));
    }
    
    public void setCircuit(LinkedList <Composant> c){
        this.circ = c;        
    }
    
    public void addComponent(int indexPrec, Composant c){
        this.circ.add(indexPrec+1, c);
    }
    
    public LinkedList <Composant> getCircuit(){
        return this.circ;
    }
    
    public Composant getComposant(int index){
        return this.circ.get(index);
    }
}
